﻿<%@ Page Language="C#" MasterPageFile="~/toolbox.master" AutoEventWireup="true" CodeFile="campaigns.aspx.cs" Inherits="campaigns" EnableViewStateMac="false" %>
    
<asp:Content ContentPlaceHolderID="HeadPlaceHolder1" ID="cpHeader" runat="server">
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" /> 
<meta http-equiv="Pragma" content="no-cache"/>

<title>
Campaign Management
</title>
   <script type="text/javascript">
     $(document).ready(function(){
        $("div.nolist").add("div.list_saved").click(function(){
			var id = $(this).closest("tr").attr("id");
			$("#task_num").attr("value", id);
			$("#form2").get(0).setAttribute("action", "shoppingcart.aspx");
			$("#form2").submit();
			return false;
		});
		
		$("div.ordered").click(function(){
			var id = $(this).closest("tr").attr("id");
			$("#task_num").attr("value", id);
			$("#form2").get(0).setAttribute("action", "orders.aspx");
			$("#form2").submit();
			return false;
		});
		
		$("div.artwork").click(function(){
			var id = $(this).closest("tr").attr("id");
			$("#task_num").attr("value", id);
			$("#form2").get(0).setAttribute("action", "artwork.aspx");
			$("#form2").submit();
			return false;
		});
		
		$("p.propertyInfo").click(function(){
		    var id = $(this).closest("tr").attr("id");
		    $("#task_num").attr("value", id);
		    $("#form2").get(0).setAttribute("action", "property.aspx");
			$("#form2").submit();
			return false;
		});
	});	
    </script>
    
    
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="cpBody" runat="server">
    <div class="floatleft" style="border:1px solid #333; margin-top:5px;">
    <form id="form1" method="post" runat="server" >
    <div>
    <asp:PlaceHolder ID="propertyList" runat="server"></asp:PlaceHolder>
    </div>
    </form>
    <form id="form2" name="form2" method="post">
    <input type="hidden" name="task_num" id="task_num"/>
    </form>
    </div>
</asp:Content>    